package VN.EDU.IMIC.DEVELOPER.NGUYENVANTHIEN.VIDU3;

public class Model {
	public int timViTriMin(int[] List){
		int i;
		int tam=0;
		for( i=0;i<List.length;i++){
			int min = List[0];
			if(List[i] <= min ){
				tam =  i;
			}
		}
		return tam;
	}
	public int TimViTriMax(int[] List){
		int i;
		int tam =0;
		for( i=0;i<List.length;i++){
			int max = List[0];
			if(List[i] >= max ){
				tam =  i;
			}
		}
		return tam;
	}
}
